package com.pingtai.ajax.dao;
import java.util.List;

import org.hibernate.Query;

import com.pingtai.ajax.entity.Notice;
import com.pingtai.dao.BaseDao;


public class NoticeDao extends BaseDao {
	
	public List getNotice(){
		Query query = getSession().createQuery("from Notice  order by id desc");
		return  query.list();
	}

}
